package com.itbbfx.service.hospitalization.impl;

import com.itbbfx.entity.Lrecord;
import com.itbbfx.entity.Pay;
import com.itbbfx.entity.Register;
import com.itbbfx.mapper.hospitalization.LpayMapper;
import com.itbbfx.service.hospitalization.LpayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LpayServiceImpl implements LpayService {

    @Autowired
    private LpayMapper lpayMapper;

    @Override
    public List<Pay> selPays(Register register) {
        return lpayMapper.selPays(register);
    }

    @Override
    public void updPay(Register register) {
        lpayMapper.updPay(register);
    }

    @Override
    public void addPay(Register register) {
        lpayMapper.addPay(register);
    }

    @Override
    public List<Lrecord> selSurplus(Lrecord lrecord) {
        return lpayMapper.selSurplus(lrecord);
    }
}
